package com.yiweikeji.project.service;


import com.yiweikeji.project.dto.*;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.List;


@FeignClient("cif")
public interface CustomerProtocolServiceClient {

	@RequestMapping( value = {"/customer/protocol/add"}, method = {RequestMethod.POST} )
    public Result add(@RequestBody CustomerProtocol customerProtocol,@RequestParam("userId") String userId);

	@RequestMapping( value = {"/customer/protocol/delete"}, method = {RequestMethod.POST} )
	public Result delete(@RequestParam("id") Integer id,@RequestParam("userId") String userId);

	@RequestMapping( value = {"/customer/protocol/update"}, method = {RequestMethod.POST} )
	public Result update(@RequestBody CustomerProtocol customerProtocol,@RequestParam("userId") String userId);

	@RequestMapping( value = {"/customer/protocol/detail"}, method = {RequestMethod.POST} )
	public Result<CustomerProtocol> detail(@RequestParam("id") Integer id,@RequestParam("userId") String userId);

	@RequestMapping( value = {"/customer/protocol/list"}, method = {RequestMethod.POST} )
	public Result<List<CustomerProtocol>> list(@RequestBody CustomerProtocol customerProtocol, @RequestParam("page") Integer page, @RequestParam("size") Integer size,@RequestParam("userId") String userId);
}
